<template>
  <div class="home">
    home page
    <el-button type="primary" @click="openDialog">加载弹窗</el-button>
  </div>
</template>

<script setup lang="ts">
import { ElMessage } from 'element-plus'
const openDialog = () => {
  ElMessage({
    message: 'Congrats, this is a success message.',
    type: 'error',
    duration: 0
  })
}
</script>
